package com.freewater.springboot.demo.ioc.javabasedconfig.returninterfacetype;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        applicationContext.registerShutdownHook();
        final OrderManager orderManager = applicationContext.getBean(OrderManager.class);
        System.out.println(orderManager.getTransferService());
    }
}
